package com.mantru.iotpot.dao;

import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.Environment;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;

import androidx.annotation.Nullable;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

/**
 * 搜索词记录表
 * 作者： cmh
 * 日期： 2022/12/19
 */

public class t_search_text
{
    public String table_name = "t_search_text";
    public String timestamp = "0", text_value;
    public String create_sql = "create table t_search_text(timestamp integer primary key, text_value text)";
    public String drop_sql = "drop table t_search_text";
    public String delete_sql = "delete from t_search_text where text_value=?";
    public String list_sql = "select text_value as text from t_search_text";

    public String[] GetListValues()
    {
        String[] values = new String[0];
        return values;
    }

    public ContentValues GetInsertContentValues()
    {
        ContentValues cv = new ContentValues();
        cv.put("timestamp", timestamp);
        cv.put("text_value", text_value);
        return cv;
    }

    public String[] GetDeleteValues()
    {
        String[] values = new String[1];
        values[0] = text_value;
        return values;
    }

}
